template for maimumPmf