fixed example code