flipud added - tests still to be done
joining at index started