update swift pointer