points calculation now works