refactor for the inquiries results