add pmf code