tweaked health algorithm