made abit nicer on memory