renaming router to fn