clean up grid class