adding query Expansion Code