updated transducer example