Earlier this year , under pressure from Senator John McCain , Republican of Arizona , the Pentagon reworked the C-130J contract to provide for greater oversight and control of the program 's costs and contractor profits .