added direction extration to the navigation method