fixed errors except for funcall and unmatched exp