added check for no results