match was not used correctly. closes #251