Setting specific order for contcatenation and fix reliance on global scope