add: functions to index.