adds 2 codes to openGL