minor changes to processing