actually fixed transformation problem