changed type error reporting