replaced renderGeometry in realRender