modified output type to byte