bug - clear memory before program run