implemented allBits test
remove unused argument:len