update sync example logic