indexing handShifts and dealing with a special case