remove duplicate and useless