change index var