removes the old data file and adds new functions