fix results calculation