add head to index