move the tac to before printing the list