adapted update process to context refactoring