refactoring reduce keywords own method
fixed bug in list merging