now caluclating proper point index