better checks for ints