Optimized the list operation