somehow fixed int-range
Fixed typo in function