update example to use convenient method