adding diff links to query