new function setFields