rewriting list routs