correcting routing code