add logic to look back in the first window for vhnd calcs if necessary
formatting