trying to simplify damage function