changed grid dimensions to floats