Update fields

working functiona