added parameter to disable setting fields final