changed output - writing to stdout