change metric_archive logic
update archive logic