Improvement on indirection, bits and masks