fix some bugs in the transform with shitty scaling
ready-to-eat scalings included