update pix.cpp