drop useless code