changed GetDelta and GetStartingRow