added data binarization