Local

modifs for upper value as equivalent mate , adding threads as option