updates to gl code