rewrite methods about data sync