rewrite point cal again

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>