created hierarchy structure for category