can this code be optimized?

Printable View