get rid of unnecessary n = 1, n = 0;