mocking update