what are the optimizations required here
I tried everything from the internet. none of them working!!