Remove ts and ns before insertion