removed deprecated gl stuff