the core function Record Input is ok haha(demo version)