updated some logic on health