adding index service as parameter