updated example code for 1.2