length of byte should have been in hex instead of decimal