still fixing code to new quaternion location change