changed padding to vector.insert()