created speeds controller