The mechanism of reaction is investigated with the help of DFT studies and literature known pathways (for reduction of nitro group on Pd surface). DFT studies suggesting that for cyclization step how nucleophile preferred nitrile group over ester group which is uncommon way of cyclization. The plausible reaction pathway is shown in Figure .