added index for parent dept id