change sync functionality