legend
use the numbers ABCs instead of isbasictype