fixed for detection of any type of block