updated for new arguments in change_data