update for transformer