protected the open files with 'with'; toying with the shop items