change data method