add support for picking an end number. also convert to tabs.
the proper iteration condition