added more logic to results calculations in client controller