remove useless parts