updating task to correctly update health