remove unneeded components