translation of cases to if expressions added, still needs work on instruction evaluation