solving conflicts in webgl