fixes for list and print function