implemented calculation of significance for ChDir