Make int instead of long for scala map api