improve the code

fixing issues related ISI analysis of second 400 tials