rm dpm from function