How to print previous submissions separately?