debugging.  trying to get p-1 case working