attempting to deal with memory