removing Vector3.tmp usage