Change index accordingly