writing p to color and print