trade models and functions