adding trial_index as a default data type