wrapper for logPosterior