had to add some stuff to account for lists in my print function.