Implemented the reverse transformation