setup staff index function