don't use the deprecated sets module
calculate the actual transformations