add fun of index