add logic for comparing sample size seq number