layout loop changes