update point struct pass by ref