fixed tolower issue