added check for failed method return type resolve