fixed ordering problem in concatenation