set/get for memory working