Effect of metal ions in organic synthesis