evaluates and dir flattening preparation