update the output of pointer