made maximum rate into a parameter