minor changes to processing code