add query of name function