moved index out