improved insertcategories