add functions index