update configuration function