struggling with sync