addService function added