remove unneeded elements