gettingIrretated function added