new T-Rex code