add function to update pressure from pressure change