some changes to the example