adding filename method to Trial