pmc_comb added and related functions moved there