changes in processing code