one error: sz[i] should initialize to 1