refactor memory