add assign id in binarize