solver methods for grid class