added sanity check to matrix format for br -eval