sync functionality implemented