add categories managed function