delete useless code of adapt