update input format, first runable version.