adding if handling to layout generator
0.3.21