set default value for reg_source