removed the unused nodes