added grid stuff, tesselation