fixed file types for head and index (?)