udpated pointers