rewrite of grid into a non rendering class