removed DelP function, wrong way of finding equation of state