fixed addAt() array error, need to add sequentially