print a list