fixing transformation stuff