make debug for the outcom before pm and after pm