adjusting analysis to deal with variable trial lengths, still have speed issue