working with sync