change reset memory to false after running a program