updated Brian's example