changed output generator