modified closed range create func. add error logic(add error logic test), and malloc func called after args judgment