identify pattern and extract useful information