updated memory tracking
updated memory tracking