it is done this way due to empty results