removed doSync() and minor update in sync