change scope index