remove not used routes and functions