fix misplaced function example