added some opengl code