improvements for printing the lists