added memory friends. together we stand, alone we fall
working on write function