updated line code

fixed some of the logic that would never get invoked
and edited the speeds