setting the bit mask wrong will throw an error