create functions in jr_setting.php