add error handling for no matches