volume function actually computes volume now