take out useless parts