update hasNext logic