quick fix for reversal of speed - must be improved