fixes bug with num_subsequent