added back rest of subsidy functions