erased unneeded elements