trying to work out the GL stuff