add merge_with code to article model