changed debug to p