added health and damage function