improved upto, but still growing an array, tests passing