update pointers on c