add some utils for featurizing data