added calcullation with factor for rings and folds