implemented makePColor