changes function for creation of weka files