changed gl helper function linking