modify heredocument variable