for i = j downto 1 do