changed the data type to []byte