The code is optimized