added byteToInt; fix -55 indexoutofbounds