fix sync example

add object for result value