corrected implementation of Illinois method