added routine to go through all the nodes of the origin model in the appropriate type order