added method setFields