convert speed to int to test