add services function