removing un-needed graphs