renamed parameters to match spec