correcting pointer