detects next block