fixed typo
added type hints to avoid reflection