cleaned up memory module