porting from gogl to my gl