tweaked the healing function