removing hidden append

add functions for aggregation for scaleArr