updating Service class