removde unused transformHistory in messages