removed illegal const qualifier at setBaseIndex