set break in while() in loadDocs