renamed speed to rate