modified array swapping actions