minor change type check decorator