refactored the output of byte arrays