useless i variables removed