remove useless infomation