fix syntax in example code