main: updated memory value and added swap value