changed pH code