append elements using more safety method