avg and sdv totally or recursively