figuring out speed
revised