error checking on sync