i want to push items from one array to another but i\'m getting only duplicates of last item. is there a way or better way of working this out? thanks