removed uneccessary code from routes