two variants: for integer and for a list of ints