altered to work with new gl model