updated example for latest version