add several elements the same time