modified input generator