add func to caculate binary nums