variables are now properly bound in makeGrid()