added type error def