more code in preparation for merging keyphrase