including all numbers in algorithm