update example to be inline with changes