memory management added to objects