correctly extract nibbles.