model from fields