merge direction And direction map together