removed duplicate code in GravityActor