deleted some routes and fixed some code