material for loop flow control
minor tweaks