using append for concatinating arrays
fixed layout store and each-layout loop