first working version of grid