modified output sequence