working on fixing tranformation functions