added API for conditional likelihood