go to pains

Verb

 * 1) To expend effort to do something.