renamed pcfg transition to pcfgtransition to avoid scope collision with hmm