removed duplicate function, put gen_lexical_features back in