added GLM calling conventions