vol and pit should be in vector