some fixes to the example