grid based on iterator - not fully working