remove unneeded things.