change code to use Vec3.normalize()