modified some stuff to compute lvm