uppercase condition fix