changed print-list function.