add limits to queries