test and fix model.math
test and fix transformation
test and fix Region