add convert code in unitinput