fixed bad example code