adding interfaces sorted and childrencount