get memory on repeat
Fixed repetition error