calculating volume