calculating of density and pressure added