type hints to improve performance