update pixelization code