fixed problems with concatenation