remember filename and display it at the end