add parentid on category