finished reading loop