changed the order of models to avoid a NameError.