can i combine this 2 code into one?

Printable View