set proper local