i think i fixed clearing memory while programs are running