update point function