make precise $classes and $functions map