Revert "int to byte"

This reverts commit ad66fbeda313c04f31122caa1b9867b7bdf8b066.