fixing this conditional - type name is str