add writing out sequence length stats