use toString instead of printList