added: saving of memory