recursive in range aint working but at least it terminates!