type hints for the speed