remove old route and define new correctly