feature extraction stuff and train update