clear useless code