remove old function indexing code