changes to calculation of fees