update to get pi trial counts