thanks Sturl, your second code works well although I had to divide the vector elements through 128 to get just the binaries <br>