added implementation of full conditional calculation