adding select statement to allow to search and select embedded docs