modified add_data file