purchase and query
merge