added first or default to prevent empty list error in getKnowledgeBaseResults
locate implementation finished. cosmetics