creation of subentities model tree