declaring volume functions