added a few lines to examine data loss due to incorrect trials and outliers