tricky bit twiddling