update helth check function