unnecessary i variable