updating processing code