new logic of model fields definition