add delete memory