add better error string, match against right variable