substitue misused variable 'total_success' with 'success_rate'