line edit optimizations