implement ability to get index of trial relative to block