added compensation for old vertices