add methods for insert and size