::merge arrays working