example code works now