figured out how to get average ph