don't subscript if result is empty