fixed data_trials problem