[IMP] fields: refactor code to initialize fields