routes and functions match