extracting and discovering patterns