modifying items file and getting a better formatted loop