Optimization and Protect linked list