simple grid fitter, needs cleanup
simple grid fitter, needs cleanup