iterating on the layout