added filenames, print_item function