snapshot before making changes for unittesting