take pains to do sth