resultscase initialization fixed for the case of tied variablles