Effect of ionic liquids in acid-promoted heterocyclic rearrangement reaction