remove the useless items