moved index to head