List printout refactor