added point calculation based on rank