update all data, make logistic faster