sorted out locales, got rid of redundancy