* minor changes in the check pressure function