add logic for 2nd level category hierarchy