mem initialized to 0.