changed output to []byte from string