demo begin and end batch update