added set_in_memo docstring