added Corey function to the data