- uncommented the dpm function