added limit on number of keywords