renamed rate to pay