handle all type error