Inserting for index < capacity, works except it increases size each time