removed delete for nonempty categories