added point calculate function