modified some output stuff