update previousDirection more often