improve transformer