use p and coloring