fixed example code for tact_single