update processing code