now showing memory status on each iteration