handle concatenation properly