setting with 1 loop