removes uneccessary route