adding logic for submodel updates