added odometer code, but there's still a problem