changing indices