add conditional to check for duplex layout