Here is the optimized