added functions to GLHelper