part working toBinary