added pressure constraint equation