defined attributes for all models and updated specs