do not use predict_w and train_w any more