add comment for cleaned up volume calculation code