updating information synchronously