head and index