changing output to add iteration number
toying with constraint : fixing the spacing constraint (switching to constant dist)