added function elements to the index