corrected example processor code