How to merge program texts