support for 2lev num bits, 1 <= n <= 8