d_3 main function but problems in open bayes