reset for main memory added