sync variables