come code for populating the KB