update service function