changed memory check