removing slower array concatenation