separate head and head_indices
head_indices -> indices