use correct function to draw routes