finish bayesact calling logic