remove useless code snippet