correct the return expression in checkavaiable() method for endpoint and circular pattern finders