finalizing routing