enable all valid patches of a given size to be extractetd