fixing ambiguous query