make querying email effective