seemingly the correct version using 3 transformation