enquiry function done