changed index conditional position