updated STM example