modified snippet to extract multiple snippet for each query