type unit replace for int