add category attribute