implement destroy.remove useless code