fixing ordering of pieces in routes