added condition in demographics to sync method