corrected tolower call