points calculation bugs