remove useless code from List