removed dependency on locale