replaced some arrays with vec3 and vec4 objects