sub routine for metadata search