debug printout in p2