change the slopto function in Point