add the type hint check