error message on nested types