testing loops for layout