added pix func to color and cleaned up main.cc