fix transformation method