Countrywide has also shifted its loan production guidelines and now only makes loans that can be sold on the secondary market to government-backed enterprises such as Fannie Mae or Freddie Mac or that qualify under investment requirements for its banking unit .