add log message in applyModel