add memory check base