created getShiftSwaps method