added function to generate logistic files