modified for Clement's data set
modified further