delete some unnecessary  code