adding code to print even and odd pages