added output comparison