optimized list editing