adding sync method to adapter