revise the binary calculation and that's right