modified category deletion