improve set locale