take (great) pains
idiomDefinition of take (great) pains
: to try hard (to do something)
He took (great) pains to explain the situation to us.