fields to model