trying to get changing direction to work