finished a workable version of seam estimation