improved algorithm so there are less gaps, closer...