diff between sync and atomic