search for pattern diagram
return