output value stacking - output last if value is array