removed write imodel