prototype -- writes to stdout