adding sync feature