init direction update