[what] map direction function