refactor the scopes for te index profiles