a conditional added to query, refs #374
added another conditional to query, refs #374