remove "any" from error keywords