support byte sequences with size of 2,4 and 8