changed last relevant line related to memory lists