gl constants optimalization