change physicshelper to ref rather than pointer