greatestDelta functionality added