works for 9 bit wiki