added new module exchange_arrays
bugfix