resetting the direction too