removed bug for determining number of conditions
removed bug for determining number of conditions
removed bug for determining number of conditions