add health logic