change transformator to transformer and also change related methods, variables and type