read out correctly the length of bytes