modified subsidy algorithm