handle no result found correctly