added opengl stuff