convert to numeric before binarizing