made functions for computing quantities face quadratures