concatenate array instead of double append