cleaned up processing example