added outputs for queries