reduced duplicated code within the service routines