restoring function by eliminating pain