added in render as part of glut loop