added computation of capsules if caps vector is empty