cleaned up missing-type error handling.