results logic