fixed insert()