add parse.h and set parse_input methon