r.next() is needed to get results