refactored keyword populating.