moved index to program