improved example of use