modified to accept raw dataset from Dodd paper