start using Jeremys function to retrieve trial associated data.