add velocity tracking for end movement