moved index to source