initialize some fields