removed bug when iterating in time.  Time indexing accross segments still needs thought