works for ints up until 24001