How can I remove the list that appears at the end of this code? File List X and Y appear at the end of the code, but I do not want this to happen. How can I change it?