modified output openings to be cleaner