added size update in insert functions