code to set system settings