calling one service of a function at a time