remove debugging
check locales length