work on the update mem-type function