changed examples to reflect callback argument reordering