scannin and querying users