make sure that string and symbols are valid in type
more info about errors