code cleanup, using gl-vec3/set